home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5581 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  46 lines

  1. Path: sun001.spd.dsccc.com!spd!jmccarty
  2. From: jmccarty@spd.dsccc.com (Mike McCarty)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: argv on VMS (was Re: Question on argv
  5. Date: 20 Feb 1996 00:30:39 GMT
  6. Organization: DSC Communications Corporation, Plano, Texas USA
  7. Message-ID: <4gb4nf$odp@sun001.spd.dsccc.com>
  8. References: <4eoq3c$45j@usenet.ucs.indiana.edu> <harmon.823153381@pegasus.montclair.edu> <TANMOY.96Feb10160209@qcd.lanl.gov> <hubey.824149407@pegasus.montclair.edu>
  9. NNTP-Posting-Host: aplo139.spd.dsccc.com
  10.  
  11. In article <hubey.824149407@pegasus.montclair.edu>,
  12. H. M. Hubey <hubey@pegasus.montclair.edu> wrote:
  13.  
  14. )I have a related question on argc and argv[] on VMS.
  15. )
  16. )I have a problem getting VMS to accept the commanline argument
  17. )to my program which expects one argument i.e. it should be
  18. )of the form
  19. )
  20. )$ uedit junk.dat
  21. )
  22. )It works fine on Unix but not on VMS since VMS needs the "run"
  23. )command so it becomes
  24. )
  25. )$ run uedit junk.dat 
  26. )
  27. )so VMS apparently thinks that junk.dat modifies the run
  28. )command. I tried things like 
  29. )
  30. )$run uedit/input=junk.dat
  31. )
  32. )etc but it won't work. What's the  correct format for VMS?
  33.  
  34. This is not a "C" question, but a VMS question. In any case, the answer
  35. is: install your command as a foreign command.
  36.  
  37.     $ uedit :== disk:[path]uedit.exe
  38.  
  39. Then when you type uedit, your command line arguments will be visible.
  40.  
  41. Mike
  42. ----
  43. char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  44.  
  45. I don't speak for DSC.         <- They make me say that.
  46.